package com.atmilan.quartz.model.entity.buyer;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author hupeng
 * @since 2020-04-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class BuyerCate extends Model<BuyerCate> {

    private static final long serialVersionUID = 1L;


    /**
     * id
     */
    @JsonProperty(value = "cat_id")
    @TableId(value = "cat_id", type = IdType.AUTO)
    private Integer catId;
    /**
     * id
     */
    @JsonProperty(value = "parent_id")
    private Integer parentId;
    /**
     * 首字母
     */
    @JsonProperty(value = "cat_zm")
    private String catZm;
    /**
     * 品牌名称
     */
    @JsonProperty(value = "cat_name")
    private String catName;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd  HH:mm:ss")
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd  HH:mm:ss")
    private Date editTime;

    @Override
    protected Serializable pkVal() {
        return this.catId;
    }

}
